﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace Tenebrous_Manor.Randomization
{
    class FurnitureGraphics
    {

        //static public Texture2D[] chair = new Texture2D[4];
        static public Texture2D[] hole = new Texture2D[2];
        static public Texture2D error;

        static Random rand = new Random((int)DateTime.Now.Ticks);

        public enum FurnitureType
        {
            BIGHOLE,
            BIGHOLE4,
            /*CHAIR,
            CHAIR2,
            CHAIRBACK,
            CHAIRFRONT*/
        }

        static public Texture2D RandomEnum()
        {
            FurnitureType[] values = (FurnitureType[])Enum.GetValues(typeof(FurnitureType));
            return getTexture(values[rand.Next(0, values.Length)]);
        }

        static public Texture2D getTexture(FurnitureType type)
        {
            switch (type)
            {
                case FurnitureType.BIGHOLE:
                    return hole[0];
                case FurnitureType.BIGHOLE4:
                    return hole[1];
                /*case FurnitureType.CHAIR:
                    return chair[0];
                case FurnitureType.CHAIR2:
                    return chair[1];
                case FurnitureType.CHAIRBACK:
                    return chair[2];
                case FurnitureType.CHAIRFRONT:
                    return chair[3];*/
            }

            return error;

        }
    }
}
